/*
 * Copyright (c) Huoty, All rights reserved
 * Author: Huoty <sudohuoty@163.com>
 * CreateTime: 2020-07-21 13:55:52
 *
 */

double cfib(int n){
    int i;
    double a=0.0,b=1.0,tmp;
    for(i=0;i<n;i++){
        tmp=a;a=a+b;b=tmp;
    }
    return a;
}
